package com.tree.common.config.i18n;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @ClassName com.tree.common.config.i18n
 * Description: i18n 配置文件
 * <p>
 * @see   org.springframework.boot.autoconfigure.context.MessageSourceProperties
 * </p>
 * @Author tree
 * @Date 2020-03-29 21:08
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "spring.messages")
@Data
@Validated
public class I18nProperties {
    @NotNull
    private String basename;
    private String encoding;
    private int cacheDuration;

}
